﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;
using ZSZ.Common;

namespace ZSZ.CommonMVC
{
    /// <summary>
    /// 自定义错误处理
    /// </summary>
    public class ResetHandleErrorAttribute : HandleErrorAttribute
    {
        public override void OnException(ExceptionContext filterContext)
        {
            base.OnException(filterContext);

            LogHelper.WriteLog(filterContext.Exception.ToString());
            //ILog logWriete = log4net.LogManager.GetLogger("ZSZ");
            //logWriete.Error(txt);
        }
    }
}
